package adapter;

import adaptee.TFCard;
import adaptee.impl.TFCardImpl;
import lombok.AllArgsConstructor;
import lombok.Data;
import target.SDCard;

@AllArgsConstructor
public class SDAdapterTF implements SDCard {

    //声明适配者类
    private TFCard tfCard;

    @Override
    public String readSd() {
        return tfCard.readTF();
    }

    @Override
    public void writeSD() {
        tfCard.writeTF();
    }
}
